package avicit.bdp.dms.tdm.utils;

import avicit.bdp.core.enums.BaseEnum;

public enum FlowType implements BaseEnum {
  // 流程类型，1-资产发布，2-资产撤回，3-资产申请
  PUBLISH(1, "资产发布"),
  REVOKE(2, "资产撤回"),
  APPLY(3, "资产申请");

  FlowType(int code, String descp) {
    this.code = code;
    this.descp = descp;
  }

  private final int code;
  private final String descp;

  public static FlowType valueOf(int value) {
    for (FlowType o : values()) {
      if (o.getCode() == value) {
        return o;
      }
    }
    return null;
  }

  public int getCode() {
    return code;
  }

  public String getDescp() {
    return descp;
  }

}
